﻿using System;
using System.Collections.Generic;
using System.Text;
using Cashier_Utils;

namespace Cashier_Model
{
    [TableAttribute(Tablename = "warehouse")]
    public class Warehouse: BaseModel
    {
        private Int64 id;

        [TableAttribute(Columnname = "id", Columntype = "bigint", Iskey = true, Iscondition=true, Isdeletefield=true)]
        public Int64 Id
        {
            get { return id; }
            set { id = value; }
        }

        private String warehouseno;

        [TableAttribute(Columnname = "warehouse_no", Columntype = "varchar", Iscondition=true, Isupdatefield=true)]
        public String Warehouseno
        {
            get { return warehouseno; }
            set { warehouseno = value; }
        }

        private String name;

        [TableAttribute(Columnname = "name", Columntype = "varchar", Iscondition = true, Conditiontype = ConditionType.LIKE, Isupdatefield = true)]
        public String Name
        {
            get { return name; }
            set { name = value; }
        }

        private String province;

        [TableAttribute(Columnname = "province", Columntype = "varchar", Iscondition=true, Isupdatefield = true)]
        public String Province
        {
            get { return province; }
            set { province = value; }
        }

        private String city;

        [TableAttribute(Columnname = "city", Columntype = "varchar", Iscondition=true, Isupdatefield = true)]
        public String City
        {
            get { return city; }
            set { city = value; }
        }

        private String area;

        [TableAttribute(Columnname = "area", Columntype = "varchar", Isupdatefield = true)]
        public String Area
        {
            get { return area; }
            set { area = value; }
        }

        private String street;

        [TableAttribute(Columnname = "street", Columntype = "varchar", Isupdatefield = true)]
        public String Street
        {
            get { return street; }
            set { street = value; }
        }

        private String person;

        [TableAttribute(Columnname = "person", Columntype = "varchar", Isupdatefield = true)]
        public String Person
        {
            get { return person; }
            set { person = value; }
        }

        private String tel;

        [TableAttribute(Columnname = "tel", Columntype = "varchar", Isupdatefield = true)]
        public String Tel
        {
            get { return tel; }
            set { tel = value; }
        }

        private String mobile;

        [TableAttribute(Columnname = "mobile", Columntype = "varchar", Isupdatefield = true)]
        public String Mobile
        {
            get { return mobile; }
            set { mobile = value; }
        }

        private DateTime createtime;

        [TableAttribute(Columnname = "createtime", Columntype = "datetime")]
        public DateTime Createtime
        {
            get { return createtime; }
            set { createtime = value; }
        }
    }
}
